﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020011C9 RID: 4553
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class SpaceZooExchangeItemScRsp : IMessage<SpaceZooExchangeItemScRsp>, IMessage, IEquatable<SpaceZooExchangeItemScRsp>, IDeepCloneable<SpaceZooExchangeItemScRsp>, IBufferMessage
	{
		// Token: 0x170039A3 RID: 14755
		// (get) Token: 0x0600CBDB RID: 52187 RVA: 0x0022568D File Offset: 0x0022388D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<SpaceZooExchangeItemScRsp> Parser
		{
			get
			{
				return SpaceZooExchangeItemScRsp._parser;
			}
		}

		// Token: 0x170039A4 RID: 14756
		// (get) Token: 0x0600CBDC RID: 52188 RVA: 0x00225694 File Offset: 0x00223894
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return SpaceZooExchangeItemScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170039A5 RID: 14757
		// (get) Token: 0x0600CBDD RID: 52189 RVA: 0x002256A6 File Offset: 0x002238A6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return SpaceZooExchangeItemScRsp.Descriptor;
			}
		}

		// Token: 0x0600CBDE RID: 52190 RVA: 0x002256AD File Offset: 0x002238AD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SpaceZooExchangeItemScRsp()
		{
		}

		// Token: 0x0600CBDF RID: 52191 RVA: 0x002256B5 File Offset: 0x002238B5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SpaceZooExchangeItemScRsp(SpaceZooExchangeItemScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this.itemId_ = other.itemId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600CBE0 RID: 52192 RVA: 0x002256E6 File Offset: 0x002238E6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SpaceZooExchangeItemScRsp Clone()
		{
			return new SpaceZooExchangeItemScRsp(this);
		}

		// Token: 0x170039A6 RID: 14758
		// (get) Token: 0x0600CBE1 RID: 52193 RVA: 0x002256EE File Offset: 0x002238EE
		// (set) Token: 0x0600CBE2 RID: 52194 RVA: 0x002256F6 File Offset: 0x002238F6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x170039A7 RID: 14759
		// (get) Token: 0x0600CBE3 RID: 52195 RVA: 0x002256FF File Offset: 0x002238FF
		// (set) Token: 0x0600CBE4 RID: 52196 RVA: 0x00225707 File Offset: 0x00223907
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint ItemId
		{
			get
			{
				return this.itemId_;
			}
			set
			{
				this.itemId_ = value;
			}
		}

		// Token: 0x0600CBE5 RID: 52197 RVA: 0x00225710 File Offset: 0x00223910
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as SpaceZooExchangeItemScRsp);
		}

		// Token: 0x0600CBE6 RID: 52198 RVA: 0x0022571E File Offset: 0x0022391E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(SpaceZooExchangeItemScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && this.ItemId == other.ItemId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600CBE7 RID: 52199 RVA: 0x0022575C File Offset: 0x0022395C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.ItemId != 0U)
			{
				num ^= this.ItemId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600CBE8 RID: 52200 RVA: 0x002257B4 File Offset: 0x002239B4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600CBE9 RID: 52201 RVA: 0x002257BC File Offset: 0x002239BC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600CBEA RID: 52202 RVA: 0x002257C8 File Offset: 0x002239C8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(24);
				output.WriteUInt32(this.Retcode);
			}
			if (this.ItemId != 0U)
			{
				output.WriteRawTag(80);
				output.WriteUInt32(this.ItemId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600CBEB RID: 52203 RVA: 0x00225824 File Offset: 0x00223A24
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.ItemId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.ItemId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600CBEC RID: 52204 RVA: 0x0022587C File Offset: 0x00223A7C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(SpaceZooExchangeItemScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.ItemId != 0U)
			{
				this.ItemId = other.ItemId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600CBED RID: 52205 RVA: 0x002258CC File Offset: 0x00223ACC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600CBEE RID: 52206 RVA: 0x002258D8 File Offset: 0x00223AD8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 24U)
				{
					if (num != 80U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.ItemId = input.ReadUInt32();
					}
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x040051DB RID: 20955
		private static readonly MessageParser<SpaceZooExchangeItemScRsp> _parser = new MessageParser<SpaceZooExchangeItemScRsp>(() => new SpaceZooExchangeItemScRsp());

		// Token: 0x040051DC RID: 20956
		private UnknownFieldSet _unknownFields;

		// Token: 0x040051DD RID: 20957
		public const int RetcodeFieldNumber = 3;

		// Token: 0x040051DE RID: 20958
		private uint retcode_;

		// Token: 0x040051DF RID: 20959
		public const int ItemIdFieldNumber = 10;

		// Token: 0x040051E0 RID: 20960
		private uint itemId_;
	}
}
